Created an automatic, reproducible development environment#47
Merged
cachebag merged 3 commits intocachebag:masterfrom Nov 3, 2025
Merged
Created an automatic, reproducible development environment#47cachebag merged 3 commits intocachebag:masterfrom
cachebag merged 3 commits intocachebag:masterfrom
Conversation
- Created an automatic development environment via a nix flake - Supports both `nix develop` and `direnv allow` - Added `rust-toolchain.toml` to specify what version of the rust language to use
Owner
|
Thanks so much for your PR! I think this will be super valuable. Appreciate the contribution :) |
cachebag
requested changes
Nov 3, 2025
As @cachebag pointed out, I was defining the method call with a custom toolchain attribute set but didn't use it when calling the `buildPackage` function. Removed the `naersk-lib` definition, and renamed `naersk'` to `naersk-package` for a clearer name and used it to build the package later. Whether or not this actually builds the package as needed requires more understanding on my part, but it should build a binary just fine for all targets that `nix` can run on.
Owner
|
@of-the-stars Very appreciative of this addition! |
cachebag
approved these changes
Nov 3, 2025
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
nix developanddirenv allowrust-toolchain.tomlto specify what version of the rust language to useIt lets anyone using the nix package manager and the experimental flakes feature to create the same development environment every single time, which allows for easier contribution.
Basically sets up everything a developer needs to work on the project without having to run a bunch of commands that aren't easily reproduced.
TODO: Look deeper into how the code is packaged to automatically create a package based off of existing build tools :)